package cn.bigway.app.weavingdesigner.swing;

import javax.swing.JDialog;

import cn.bigway.app.weavingdesigner.main.WdMainFrame;

public abstract class WdDialog extends JDialog {
	private static final long serialVersionUID = -5451263773245683351L;

	public void showDialog() {
		setModal(true);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		setLocationRelativeTo(WdMainFrame.getInstance());
		pack();
		setVisible(true);
		dispose();
	}
}
